package com.coolw.core.function;

import java.util.function.Function;

/**
 * Function函数：接收一个参数T，返回结果R。调用apply方法执行
 *
 * @author coolw
 * @date 2025/3/21 9:09
 */
public class FunctionTest {

    public static void main(String[] args) {
        Function<String, Integer> function = s -> Integer.parseInt(s) + 1;
        int result = function.apply("1");
        System.out.println(result);
    }
}
